import request from '../index'

interface IDistr {
    disName:string,
    disLeader:string,
    disPhone:string,
    disPlace:string,
    disConStart:string,
    disConEnd:string,
    Id?:number
}

export interface IPage {
    page:number,
    pageSize?:number
}

export function getDisInfo(pageConfig:IPage,name?:string){
    return request({
        url:'/busi/distr/info',
        data:{
            name,
            pageConfig
        }
    })
}
export function addtDisInfo(dis:IDistr){
    return request({
        url:'/busi/distr/add',
        data:dis
    })
}
export function editDisInfo(dis:IDistr){
    return request({
        url:'/busi/distr/edit',
        data:dis
    })
}

export function delDisInfo(Id:number){
    return request({
        url:'/busi/distr/delete',
        data:{
            Id
        }
    })
}
